cat > /etc/logrotate.d/tomcat <<EOF
/usr/local/apache-tomcat-8.0.28/logs/catalina.out {
	copytruncate
	daily
	rotate 7
	missingok
	compress
	size 10M
}
EOF
